package com.example.a2032.entity;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;

@Entity(tableName = "JstyleClock")
public class JstyleClock implements Serializable {
    public final static int CLOCK_NORMAL = 1;
    public final static int CLOCK_DRINK = 2;
    public final static int CLOCK_MEDICA = 3;
    public final static int CLOCK_FOOD = 4;

    int hour;
    int minute;
    @NonNull
    boolean enable;
    int clockType;
    @NonNull
    String cycle;
    @PrimaryKey
    long id;

    public JstyleClock(int hour, int minute, boolean enable, int clockType, @NonNull String cycle, long id) {
        this.hour = hour;
        this.minute = minute;
        this.enable = enable;
        this.clockType = clockType;
        this.cycle = cycle;
        this.id = id;
    }
@Ignore
    public JstyleClock() {

    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getHour() {
        return hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    public int getMinute() {
        return minute;
    }

    public void setMinute(int minute) {
        this.minute = minute;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public int getClockType() {
        return clockType;
    }

    public void setClockType(int clockType) {
        this.clockType = clockType;
    }

    @NonNull
    public String getCycle() {
        return cycle;
    }

    public void setCycle(@NonNull String cycle) {
        this.cycle = cycle;
    }
}
